home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 315.adf / Surf / scrnio.h < prev    next >
C/C++ Source or Header  |  1990-02-14  |  600b  |  28 lines

  1. #ifndef SCRNIO_H
  2. #define SCRNIO_H 1
  3.  
  4. #ifndef MYTYPES_H_FILE
  5. #include "mytypes.h"
  6. #endif
  7. extern void InitWindow();
  8. extern void CloseDisplay();
  9. extern void SetMono();
  10. extern void ClearWindow();
  11. extern void DrawPoly();
  12.  
  13. extern short DitherPower, DitherLevels;
  14. extern int WinHOrig, WinVOrig;
  15. extern int XOR, WRITE;
  16. extern short DitherMask;
  17.  
  18. extern void FreeOldDither();
  19. extern bool AllocDither();
  20.  
  21. #define CntrX(XVAL) ((XVAL) - WinHOrig)
  22. #define CntrY(YVAL) (WinVOrig - (YVAL)) /* fudge for the mouse */
  23.  
  24. #define UCntrX(XVAL) ((XVAL) + WinHOrig)
  25. #define UCntrY(YVAL) (WinVOrig - (YVAL))
  26.  
  27. #endif SCRNIO_H
  28.